/**
*
* Titre : ReceivedLogRepository.java
* Description :
* Copyright : Copyright (c) 2013 JN Mauclair
* @author : JN MAUCLAIR
* @version : $Revision: $
*
* $Author$
* $Date$
*
*/
package fr.mauclair.domogeek.persist;

import java.util.Date;
import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.repository.annotation.ConvertWith;
import org.springframework.data.rest.repository.annotation.RestResource;

@RestResource(path = "receivedLog")
public interface ReceivedLogRepository extends PagingAndSortingRepository<ReceivedLog, Long> {

	@Override
	@RestResource(exported = false)
	void delete(Long id);

	@Override
	@RestResource(exported = false)
	void delete(ReceivedLog entity);

	@RestResource(path = "created")
	List<ReceivedLog> findByCreatedGreaterThan(@Param("startDate") @ConvertWith(StringToISODateConverter.class) Date startDate);

}
